import { createBrowserRouter, Navigate } from 'react-router-dom'
import App from '../App'
import Home from '../view/home'
import Login from '../view/login'

const router = createBrowserRouter([
    {
        path: '/',
        element: <Navigate to='/home'></Navigate>,
    },
    {
        path: '/',
        element: <App></App>,
        children: [
            {
                path: '/home',
                element: <Home></Home>
            },
            {
                path:'/login',
                element:<Login></Login>
            }

        ]
    },
])

export default router


